<template>
  <div>
    <button @click="sub">
        <fontVue>
            <slot></slot>
        </fontVue>
    </button>
  </div>
</template>

<script>
    import fontVue from '@/components/Editor/Common/Font';
export default {
    components:{
        fontVue,
    },
    methods:{
        sub(){
            this.$emit('sub')
        }
    }
}
</script>

<style scoped>
button{
    height: 40px;
    line-height: 22px;
    color: rgb(153, 154, 170);
    background-color: transparent;
    background-image: none;
    font-size: 16px;
    padding: 8px 24px;
    border:1px solid #dcdfe6;
    white-space: nowrap;
    background: #fff;
    text-align: center;
    box-sizing: border-box;
    transition: .1s;
    font-weight: 500;
    border-radius: 20px;
    display: inline-block;
    margin-left: 16px;
    padding: 8px 24px;
    cursor: pointer;
}
</style>